

*FIGURE 1 
use "C:\Users\jbader2\SURFdrive\quantitative analysis\party\ISQ\Fig1.dta", clear
twoway (connected Party_all year, sort msymbol(none)) (connected Nonparty_all year, sort msymbol(none)), ///
xlab(2002(5)2017)  ytitle("Total number of meetings") xtitle("")   scheme(s1manual)

**Figure 2
twoway (connected OUTBOUND_party year, sort msymbol(none)) (connected INCOMING_party  year, msymbol(none)), ///
xlab(2002(5)2017) ylab(0 (30)180) legend(label(2 "in China") label(1 "elsewhere")) ytitle("Number of meetings")  xtitle("")  scheme(s1manual)

twoway (connected OUTBOUND_nonparty year, sort msymbol(none)) (connected INCOMING_nonparty  year, msymbol(none)), ///
 xlab(2002(5)2017) ylab(0 (30)180) legend(label(2 "in China") label(1 "elsewhere")) ytitle(" ")  xtitle("")  scheme(s1manual)

**FIGURE 4
use "C:\Users\jbader2\SURFdrive\quantitative analysis\party\ISQ\Fig4.dta", clear
histogram partymeet , discrete width(1) start(1) xscale(range(0 (25) 125)) scheme(s1manual) ytitle("Percent of parties with contact to ID-CPC")  xtitle("Number of total meetings per party") percent

*table 1 top 20
gsort partymeet
list country  party partymeet if partymeet>20 & partymeet!=.

 
**FIGURE 5 
use "C:\Users\jbader2\SURFdrive\quantitative analysis\party\ISQ\Fig5.dta", clear

graph hbar (count) if freedomhouse!="-" , over(partypowerdum, relabel(1 "Opposition" 2 "Government" )) over(freedomhouse, relabel(1 "free" 2 "non-free" 3 "partially free"))  ytitle(Number of party-to-party meetings) scheme(s1manual)
